FROM registry-vpc.cn-shanghai.aliyuncs.com/mom2_base/nginx:1.17.5


MAINTAINER gts

ENV RUN_GROUP nginx
ENV DATA_DIR /home/www/dist

# 复制源码到容器的/home目录
ADD ./build /home/www/dist

# COPY ./docker/nginx/conf.d /etc/nginx/conf.d

COPY ./docker/nginx/nginx.conf /etc/nginx/nginx.conf


# 指定执行的工作目录
WORKDIR /home/www

EXPOSE 8080

# 对接日志组件
RUN mkdir /root/app-logs && ln -s /var/log/nginx/access.log /root/app-logs/cmos-msg-fc-fe-nginx-app.log

#CMD 运行以下命令
CMD ["nginx", "-g", "daemon off;"]
